package gdou.gym.entity;

import gdou.gym.vo.SpaceAndTimeVo;

public class SpaceTime {
    private Integer id;

    private String no;

    private String data;

    @Override
    public String toString() {
        return "SpaceTime{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", data='" + data + '\'' +
                ", time='" + time + '\'' +
                ", state=" + state +
                ", remain=" + remain +
                '}';
    }

    private String time;


    public SpaceTime(SpaceAndTimeVo vo) {
        this.no = vo.getNo();
        this.data = vo.getData();
        this.time = vo.getTime();
        this.state = true;
        this.remain = vo.getRemain();
    }

    public SpaceTime() {
    }

    private Boolean state;

    private Integer remain;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data == null ? null : data.trim();
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time == null ? null : time.trim();
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Integer getRemain() {
        return remain;
    }

    public void setRemain(Integer remain) {
        this.remain = remain;
    }
}